problem-solving logic
Making Mathematical Reasoning Adaptive
Lai, Zhejian, Geng, Xiang, Wang, Zhijun, Bai, Yang, Li, Jiahuan, Weng, Rongxiang, Wang, Jingang, Cao, Xuezhi, Cai, Xunliang, Huang, Shujian
Mathematical reasoning is a primary indicator of large language models (LLMs) intelligence. This paper attributes these deficiencies to spurious reasoning--i.e., producing answers from superficial features. To address this challenge, we propose the AdaR framework to enable adaptive reasoning, wherein models rely on problem-solving logic to produce answers. AdaR synthesizes logically equivalent queries by varying variable values, and trains models with RL VR on these data to penalize spurious logic while encouraging adaptive logic. To improve data quality, we extract the problem-solving logic from the original query and generate the corresponding answer by code execution and then apply sanity check. Experimental results demonstrate that AdaR improves robustness and generalization, achieving substantial improvement in mathematical reasoning while maintaining high data efficiency. Analysis indicates that data synthesis and RL VR function in a coordinated manner to enable adaptive reasoning in LLMs. Subsequent analyses derive key design insights into the effect of critical factors and the applicability to instruct LLMs. Our project is available at https://github.com/NJUNLP/AdaR. Large Language Models (LLMs) have demonstrated strong performance across various reasoning tasks (Wei et al., 2022a; Huang & Chang, 2023). Among these, mathematical reasoning serves as a crucial cognitive skill that supports problem-solving across tasks (Huang & Chang, 2023).
Problem-Solving Logic Guided Curriculum In-Context Learning for LLMs Complex Reasoning
Ma, Xuetao, Jiang, Wenbin, Huang, Hua
In-context learning (ICL) can significantly enhance the complex reasoning capabilities of large language models (LLMs), with the key lying in the selection and ordering of demonstration examples. Previous methods typically relied on simple features to measure the relevance between examples. We argue that these features are not sufficient to reflect the intrinsic connections between examples. In this study, we propose a curriculum ICL strategy guided by problem-solving logic. We select demonstration examples by analyzing the problem-solving logic and order them based on curriculum learning. Specifically, we constructed a problem-solving logic instruction set based on the BREAK dataset and fine-tuned a language model to analyze the problem-solving logic of examples. Subsequently, we selected appropriate demonstration examples based on problem-solving logic and assessed their difficulty according to the number of problem-solving steps. In accordance with the principles of curriculum learning, we ordered the examples from easy to hard to serve as contextual prompts. Experimental results on multiple benchmarks indicate that our method outperforms previous ICL approaches in terms of performance and efficiency, effectively enhancing the complex reasoning capabilities of LLMs. Our project will be publicly available subsequently.